package queue;



/**
 * @author swing
 * @description
 * @create 2022 - 11 - 22 11:24
 */
public class QueueTest {
    public static void main(String[] args) throws Exception {
        Queue<String> queue = new Queue<>();
        queue.push("a");
        queue.push("b");
        queue.push("c");
        queue.push("d");
        System.out.println("_______________");
        for (String str : queue) {
            System.out.print(str+" ");
        }
        System.out.println("-----------------------------");
        String result = queue.pop();
        System.out.println("出列了元素："+result);
        System.out.println(queue.size());
    }
}
